Builtin Types

Odin has a large number of builtin types compared to most other languages.

Signed Integers

Unsigned Integers

byte exists as an alias of u8. It is not a distinct type.

Endian-specific types

By default, all numeric types have platform-native endianness. These types override that, which is primarily useful for things like parsing file formats, or reading data from the network. This specifically represents the byte-endianness. For that reason, u8 and i8 do not have endian-specific variants, as they are only 1 byte.

Big Endian:

Little Endian: